pub struct LocoSession { /* private fields */ }Implementations§
Source§impl LocoSession
impl LocoSession
pub fn new<T>(client: LocoClient<T>) -> (Self, LocoSessionStream<T>)
pub async fn request( &self, method: Method, data: Vec<u8>, ) -> Result<CommandRequest, Error>
Trait Implementations§
Source§impl Clone for LocoSession
impl Clone for LocoSession
Source§fn clone(&self) -> LocoSession
fn clone(&self) -> LocoSession
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 moreAuto Trait Implementations§
impl Freeze for LocoSession
impl RefUnwindSafe for LocoSession
impl Send for LocoSession
impl Sync for LocoSession
impl Unpin for LocoSession
impl UnwindSafe for LocoSession
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