pub enum Method<'a> {
Client2Server(Client2Server<'a>),
Server2Client(Server2Client<'a>),
Server2ClientResponse(Server2ClientResponse<'a>),
ErrorMessage(Message),
}Variants§
Client2Server(Client2Server<'a>)
Server2Client(Server2Client<'a>)
Server2ClientResponse(Server2ClientResponse<'a>)
ErrorMessage(Message)
Trait Implementations§
Source§impl<'a> From<Client2Server<'a>> for Method<'a>
impl<'a> From<Client2Server<'a>> for Method<'a>
Source§fn from(a: Client2Server<'a>) -> Self
fn from(a: Client2Server<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Server2Client<'a>> for Method<'a>
impl<'a> From<Server2Client<'a>> for Method<'a>
Source§fn from(a: Server2Client<'a>) -> Self
fn from(a: Server2Client<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Server2ClientResponse<'a>> for Method<'a>
impl<'a> From<Server2ClientResponse<'a>> for Method<'a>
Source§fn from(a: Server2ClientResponse<'a>) -> Self
fn from(a: Server2ClientResponse<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for Method<'a>
impl<'a> RefUnwindSafe for Method<'a>
impl<'a> Send for Method<'a>
impl<'a> Sync for Method<'a>
impl<'a> Unpin for Method<'a>
impl<'a> UnsafeUnpin for Method<'a>
impl<'a> !UnwindSafe for Method<'a>
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