toUlimitName method
Implementation
UlimitName toUlimitName() {
switch (this) {
case 'core':
return UlimitName.core;
case 'cpu':
return UlimitName.cpu;
case 'data':
return UlimitName.data;
case 'fsize':
return UlimitName.fsize;
case 'locks':
return UlimitName.locks;
case 'memlock':
return UlimitName.memlock;
case 'msgqueue':
return UlimitName.msgqueue;
case 'nice':
return UlimitName.nice;
case 'nofile':
return UlimitName.nofile;
case 'nproc':
return UlimitName.nproc;
case 'rss':
return UlimitName.rss;
case 'rtprio':
return UlimitName.rtprio;
case 'rttime':
return UlimitName.rttime;
case 'sigpending':
return UlimitName.sigpending;
case 'stack':
return UlimitName.stack;
}
throw Exception('$this is not known in enum UlimitName');
}