pub struct EndpointSource { /* private fields */ }Expand description
The origins a service is reachable at, live origin first.
Implementations§
Source§impl EndpointSource
impl EndpointSource
Sourcepub fn live(fallback: Vec<String>) -> (Self, EndpointPublisher)
pub fn live(fallback: Vec<String>) -> (Self, EndpointPublisher)
A source whose live origin the returned publisher sets; fallback
is served after it, and alone while there is none.
Sourcepub fn live_origin(&self) -> Option<String>
pub fn live_origin(&self) -> Option<String>
The live origin, if one is published now.
Trait Implementations§
Source§impl Clone for EndpointSource
impl Clone for EndpointSource
Auto Trait Implementations§
impl Forget for EndpointSource
impl Freeze for EndpointSource
impl Move for EndpointSource
impl RefUnwindSafe for EndpointSource
impl Send for EndpointSource
impl Sync for EndpointSource
impl Unpin for EndpointSource
impl UnsafeUnpin for EndpointSource
impl UnwindSafe for EndpointSource
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