pub struct Frame<T>{
pub command: T,
pub headers: HashMap<String, String>,
pub body: String,
}
Fields§
§command: T
§headers: HashMap<String, String>
§body: String
Implementations§
Source§impl Frame<ServerCommand>
impl Frame<ServerCommand>
Trait Implementations§
Source§impl Into<Frame<ClientCommand>> for Abort
impl Into<Frame<ClientCommand>> for Abort
Source§fn into(self) -> Frame<ClientCommand>
fn into(self) -> Frame<ClientCommand>
Converts this type into the (usually inferred) input type.
Source§impl Into<Frame<ClientCommand>> for Ack
impl Into<Frame<ClientCommand>> for Ack
Source§fn into(self) -> Frame<ClientCommand>
fn into(self) -> Frame<ClientCommand>
Converts this type into the (usually inferred) input type.
Source§impl Into<Frame<ClientCommand>> for Begin
impl Into<Frame<ClientCommand>> for Begin
Source§fn into(self) -> Frame<ClientCommand>
fn into(self) -> Frame<ClientCommand>
Converts this type into the (usually inferred) input type.
Source§impl Into<Frame<ClientCommand>> for Commit
impl Into<Frame<ClientCommand>> for Commit
Source§fn into(self) -> Frame<ClientCommand>
fn into(self) -> Frame<ClientCommand>
Converts this type into the (usually inferred) input type.
Source§impl Into<Frame<ClientCommand>> for Connect
impl Into<Frame<ClientCommand>> for Connect
Source§fn into(self) -> Frame<ClientCommand>
fn into(self) -> Frame<ClientCommand>
Converts this type into the (usually inferred) input type.
Source§impl Into<Frame<ClientCommand>> for Disconnect
impl Into<Frame<ClientCommand>> for Disconnect
Source§fn into(self) -> Frame<ClientCommand>
fn into(self) -> Frame<ClientCommand>
Converts this type into the (usually inferred) input type.
Source§impl Into<Frame<ClientCommand>> for Nack
impl Into<Frame<ClientCommand>> for Nack
Source§fn into(self) -> Frame<ClientCommand>
fn into(self) -> Frame<ClientCommand>
Converts this type into the (usually inferred) input type.
Source§impl Into<Frame<ClientCommand>> for Send
impl Into<Frame<ClientCommand>> for Send
Source§fn into(self) -> Frame<ClientCommand>
fn into(self) -> Frame<ClientCommand>
Converts this type into the (usually inferred) input type.
Source§impl Into<Frame<ClientCommand>> for Subscribe
impl Into<Frame<ClientCommand>> for Subscribe
Source§fn into(self) -> Frame<ClientCommand>
fn into(self) -> Frame<ClientCommand>
Converts this type into the (usually inferred) input type.
Source§impl Into<Frame<ClientCommand>> for Unsubscribe
impl Into<Frame<ClientCommand>> for Unsubscribe
Source§fn into(self) -> Frame<ClientCommand>
fn into(self) -> Frame<ClientCommand>
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl<T> Freeze for Frame<T>where
T: Freeze,
impl<T> RefUnwindSafe for Frame<T>where
T: RefUnwindSafe,
impl<T> Send for Frame<T>where
T: Send,
impl<T> Sync for Frame<T>where
T: Sync,
impl<T> Unpin for Frame<T>where
T: Unpin,
impl<T> UnwindSafe for Frame<T>where
T: UnwindSafe,
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