pub enum MessageSent {
Yes,
No,
}Expand description
Indication if a message was written into the provided writer.
This enum is returned by a call to step or step64 and indicates if a message was written
into the provided writer. It serves as a hint to a caller to inform them that they need to
ensure the message will reach the other party, be that by flushing the writer or copying the
written bytes.
Note that SASL explicitly allows the option of sending an empty message. In that case a
MessageSent::Yes will be returned but no bytes will have been written into the writer. How
to indicate an empty message differs from protocol to protocol.
Variants§
Trait Implementations§
Source§impl Clone for MessageSent
impl Clone for MessageSent
Source§fn clone(&self) -> MessageSent
fn clone(&self) -> MessageSent
Returns a duplicate 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 MessageSent
impl Debug for MessageSent
Source§impl PartialEq for MessageSent
impl PartialEq for MessageSent
impl Eq for MessageSent
impl StructuralPartialEq for MessageSent
Auto Trait Implementations§
impl Freeze for MessageSent
impl RefUnwindSafe for MessageSent
impl Send for MessageSent
impl Sync for MessageSent
impl Unpin for MessageSent
impl UnsafeUnpin for MessageSent
impl UnwindSafe for MessageSent
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