pub struct Remote {
pub url: Url,
pub share: Share,
pub token_source: TokenSource,
/* private fields */
}Expand description
A resolved remote; its token is private and never serialized.
Fields§
§url: Url§token_source: TokenSourceImplementations§
Source§impl Remote
impl Remote
Sourcepub async fn whoami(&self) -> Result<Principal, Failure>
pub async fn whoami(&self) -> Result<Principal, Failure>
Ask the server who this token is; works without a token to test reachability.
Auto Trait Implementations§
impl !Freeze for Remote
impl !RefUnwindSafe for Remote
impl !UnwindSafe for Remote
impl Send for Remote
impl Sync for Remote
impl Unpin for Remote
impl UnsafeUnpin for Remote
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