pub struct Access {
pub port: u16,
pub token: String,
}Expand description
Who this server answers: requests naming it as their host, from its own pages, and — for the editor and the files — knowing the token.
Fields§
§port: u16§token: StringImplementations§
Source§impl Access
impl Access
Sourcepub fn new(port: u16) -> GeopResult<Self>
pub fn new(port: u16) -> GeopResult<Self>
A token no other page can guess: 256 random bits.
Sourcepub fn url(&self) -> String
pub fn url(&self) -> String
Where the editor is, the token in the fragment: never sent to the server with the page’s own files, nor to another site as a referrer.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Access
impl RefUnwindSafe for Access
impl Send for Access
impl Sync for Access
impl Unpin for Access
impl UnsafeUnpin for Access
impl UnwindSafe for Access
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