pub struct Acknowledgement(/* private fields */);
Expand description
The message to tell that some message length has exceeded the server-side bandwidth range. Note this must be input the total message length in receiving. (it’s not bytes received.)
Implementations§
Trait Implementations§
Source§impl ChunkData for Acknowledgement
impl ChunkData for Acknowledgement
const CHANNEL: Channel = Channel::Network
const MESSAGE_TYPE: MessageType = MessageType::Acknowledgement
Source§impl Clone for Acknowledgement
impl Clone for Acknowledgement
Source§fn clone(&self) -> Acknowledgement
fn clone(&self) -> Acknowledgement
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Acknowledgement
impl Debug for Acknowledgement
Source§impl Decoder<Acknowledgement> for ByteBuffer
impl Decoder<Acknowledgement> for ByteBuffer
Source§fn decode(&mut self) -> IOResult<Acknowledgement>
fn decode(&mut self) -> IOResult<Acknowledgement>
Decodes bytes into a Acknowledgement message.
§Errors
When this buffer didn’t remain at least 4 bytes.
§Examples
use sheave_core::{
ByteBuffer,
Decoder,
messages::{
Acknowledgement
}
};
let mut buffer = ByteBuffer::default();
buffer.put_u32_be(u32::default());
assert!(Decoder::<Acknowledgement>::decode(&mut buffer).is_ok())
Source§impl Default for Acknowledgement
impl Default for Acknowledgement
Source§fn default() -> Acknowledgement
fn default() -> Acknowledgement
Returns the “default value” for a type. Read more
Source§impl Encoder<Acknowledgement> for ByteBuffer
impl Encoder<Acknowledgement> for ByteBuffer
Source§fn encode(&mut self, acknowledgement: &Acknowledgement)
fn encode(&mut self, acknowledgement: &Acknowledgement)
Encodes a Acknowledgement message into bytes.
Source§impl Ord for Acknowledgement
impl Ord for Acknowledgement
Source§fn cmp(&self, other: &Acknowledgement) -> Ordering
fn cmp(&self, other: &Acknowledgement) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<Acknowledgement> for PeerBandwidth
impl PartialEq<Acknowledgement> for PeerBandwidth
Source§impl PartialEq<Acknowledgement> for u32
impl PartialEq<Acknowledgement> for u32
Source§impl PartialEq<PeerBandwidth> for Acknowledgement
impl PartialEq<PeerBandwidth> for Acknowledgement
Source§impl PartialEq<u32> for Acknowledgement
impl PartialEq<u32> for Acknowledgement
Source§impl PartialEq for Acknowledgement
impl PartialEq for Acknowledgement
Source§impl PartialOrd<Acknowledgement> for PeerBandwidth
impl PartialOrd<Acknowledgement> for PeerBandwidth
Source§impl PartialOrd<Acknowledgement> for WindowAcknowledgementSize
impl PartialOrd<Acknowledgement> for WindowAcknowledgementSize
Source§impl PartialOrd<PeerBandwidth> for Acknowledgement
impl PartialOrd<PeerBandwidth> for Acknowledgement
Source§impl PartialOrd<WindowAcknowledgementSize> for Acknowledgement
impl PartialOrd<WindowAcknowledgementSize> for Acknowledgement
Source§impl PartialOrd for Acknowledgement
impl PartialOrd for Acknowledgement
impl Copy for Acknowledgement
impl Eq for Acknowledgement
impl StructuralPartialEq for Acknowledgement
Auto Trait Implementations§
impl Freeze for Acknowledgement
impl RefUnwindSafe for Acknowledgement
impl Send for Acknowledgement
impl Sync for Acknowledgement
impl Unpin for Acknowledgement
impl UnwindSafe for Acknowledgement
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more