pub struct OmahaServer {
pub responses_by_appid: ResponseMap,
pub private_keys: PrivateKeys,
pub etag_override: Option<String>,
pub require_cup: bool,
}Fields§
§responses_by_appid: ResponseMap§private_keys: PrivateKeys§etag_override: Option<String>§require_cup: boolImplementations§
Source§impl OmahaServer
impl OmahaServer
Sourcepub fn set_all_update_check_assertions(&mut self, value: UpdateCheckAssertion)
pub fn set_all_update_check_assertions(&mut self, value: UpdateCheckAssertion)
Sets the special assertion to make on any future update check requests
Sourcepub fn set_all_cohort_assertions(&mut self, value: Option<String>)
pub fn set_all_cohort_assertions(&mut self, value: Option<String>)
Sets the special assertion to make on any future cohort in requests
Sourcepub async fn start_and_detach(
arc_server: Arc<Mutex<OmahaServer>>,
addr: Option<SocketAddr>,
) -> Result<String, Error>
pub async fn start_and_detach( arc_server: Arc<Mutex<OmahaServer>>, addr: Option<SocketAddr>, ) -> Result<String, Error>
Start the server detached, returning the address of the server
Trait Implementations§
Source§impl Clone for OmahaServer
impl Clone for OmahaServer
Source§fn clone(&self) -> OmahaServer
fn clone(&self) -> OmahaServer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OmahaServer
impl RefUnwindSafe for OmahaServer
impl Send for OmahaServer
impl Sync for OmahaServer
impl Unpin for OmahaServer
impl UnwindSafe for OmahaServer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoAny for T
impl<T> IntoAny for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.