pub struct Symbol(pub Str);Tuple Fields§
§0: StrImplementations§
Trait Implementations§
Source§impl ArrayEncode for Symbol
impl ArrayEncode for Symbol
const ARRAY_CONSTRUCTOR: Constructor
Source§fn array_encoded_size(&self) -> usize
fn array_encoded_size(&self) -> usize
Returns the size of the type when encoded as an element of an AMQP array.
Source§fn array_encode(&self, buf: &mut BytePages)
fn array_encode(&self, buf: &mut BytePages)
Encodes the type as an element of an AMQP array.
Source§impl DecodeFormatted for Symbol
impl DecodeFormatted for Symbol
fn decode_with_format( input: &mut Bytes, fmt: u8, ) -> Result<Self, AmqpParseError>
impl Eq for Symbol
Source§impl From<ByteString> for Symbol
impl From<ByteString> for Symbol
Source§fn from(s: ByteString) -> Symbol
fn from(s: ByteString) -> Symbol
Converts to this type from the input type.
Source§impl From<Symbol> for ErrorCondition
impl From<Symbol> for ErrorCondition
impl StructuralPartialEq for Symbol
Auto Trait Implementations§
impl Freeze for Symbol
impl RefUnwindSafe for Symbol
impl Send for Symbol
impl Sync for Symbol
impl Unpin for Symbol
impl UnsafeUnpin for Symbol
impl UnwindSafe for Symbol
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