Struct sccache::server::SccacheServer
source · [−]pub struct SccacheServer<C: CommandCreatorSync> { /* private fields */ }
Implementations
sourceimpl<C: CommandCreatorSync> SccacheServer<C>
impl<C: CommandCreatorSync> SccacheServer<C>
pub fn new(
port: u16,
runtime: Runtime,
client: Client,
dist_client: DistClientContainer,
storage: Arc<dyn Storage>
) -> Result<SccacheServer<C>>
pub fn with_listener(
listener: TcpListener,
runtime: Runtime,
client: Client,
dist_client: DistClientContainer,
storage: Arc<dyn Storage>
) -> SccacheServer<C>
sourcepub fn set_idle_timeout(&mut self, timeout: Duration)
pub fn set_idle_timeout(&mut self, timeout: Duration)
Configures how long this server will be idle before shutting down.
sourcepub fn set_storage(&mut self, storage: Arc<dyn Storage>)
pub fn set_storage(&mut self, storage: Arc<dyn Storage>)
Set the storage this server will use.
sourcepub fn command_creator(&self) -> &C
pub fn command_creator(&self) -> &C
Returns a reference to the command creator this server will use
Auto Trait Implementations
impl<C> !RefUnwindSafe for SccacheServer<C>
impl<C> Send for SccacheServer<C>
impl<C> Sync for SccacheServer<C>
impl<C> Unpin for SccacheServer<C> where
C: Unpin,
impl<C> !UnwindSafe for SccacheServer<C>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more