pub struct ServerUtilities<Server: ComputeServer> {
pub properties: DeviceProperties,
pub info: Server::Info,
pub logger: Arc<ServerLogger>,
}Expand description
Contains many different types that are useful for server implementations and compute clients.
Fields§
§properties: DevicePropertiesInformation shared between all servers.
info: Server::InfoInformation specific to the current server.
logger: Arc<ServerLogger>The logger based on global cubecl configs.
Implementations§
Source§impl<S: ComputeServer> ServerUtilities<S>
impl<S: ComputeServer> ServerUtilities<S>
Sourcepub fn new(
properties: DeviceProperties,
logger: Arc<ServerLogger>,
info: S::Info,
) -> Self
pub fn new( properties: DeviceProperties, logger: Arc<ServerLogger>, info: S::Info, ) -> Self
Creates a new server utilities.
Trait Implementations§
Auto Trait Implementations§
impl<Server> Freeze for ServerUtilities<Server>
impl<Server> RefUnwindSafe for ServerUtilities<Server>
impl<Server> Send for ServerUtilities<Server>
impl<Server> Sync for ServerUtilities<Server>
impl<Server> Unpin for ServerUtilities<Server>
impl<Server> UnwindSafe for ServerUtilities<Server>
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