pub struct Origin { /* private fields */ }Implementations§
Source§impl Origin
impl Origin
Sourcepub async fn bind(
aliases: Vec<Alias>,
suffix: String,
port: u16,
token: Token,
author: String,
theme: String,
) -> Result<Bound>
pub async fn bind( aliases: Vec<Alias>, suffix: String, port: u16, token: Token, author: String, theme: String, ) -> Result<Bound>
Take the port, then connect every alias.
The port first, deliberately. It is the thing that fails immediately and for a reason the operator can do something about — another daemon already has it — and a handful of ssh handshakes paid before discovering that is time spent to learn nothing.
The aliases are connected here rather than on first use so that the first page request does not also pay for an ssh handshake.
Auto Trait Implementations§
impl !Freeze for Origin
impl !RefUnwindSafe for Origin
impl !UnwindSafe for Origin
impl Send for Origin
impl Sync for Origin
impl Unpin for Origin
impl UnsafeUnpin for Origin
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