pub struct GraphClient<T>where
T: Transport,
Bytes: Framing<DecBuf = FramingDecoded<T>>,
ProtocolEncoded<BinaryProtocol>: BufMutExt<Final = FramingEncodedFinal<T>>,{ /* private fields */ }Implementations§
Source§impl<T> GraphClient<T>where
T: Transport,
Bytes: Framing<DecBuf = FramingDecoded<T>>,
ProtocolEncoded<BinaryProtocol>: BufMutExt<Final = FramingEncodedFinal<T>>,
impl<T> GraphClient<T>where
T: Transport,
Bytes: Framing<DecBuf = FramingDecoded<T>>,
ProtocolEncoded<BinaryProtocol>: BufMutExt<Final = FramingEncodedFinal<T>>,
pub fn new(transport: T) -> Self
pub async fn authenticate( self, username: &str, password: &str, ) -> Result<GraphSession<T>, AuthenticateError>
Auto Trait Implementations§
impl<T> Freeze for GraphClient<T>where
T: Freeze,
impl<T> RefUnwindSafe for GraphClient<T>where
T: RefUnwindSafe,
impl<T> Send for GraphClient<T>
impl<T> Sync for GraphClient<T>
impl<T> Unpin for GraphClient<T>where
T: Unpin,
impl<T> UnwindSafe for GraphClient<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